﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EislaufScb.Model.Repository.Organisation
{
    public class ClubRepository : BaseRepository, IClubRepository
    {
        public ClubRepository(ClubModelContainer context) : base(context)
        {

        }

        public Club GetClubByName(string name)
        {
            return context.BaseEntitySet.OfType<Club>().Where(club => club.Name == name).First();
        }
    }
}
